package com.lyncs.ods.resp;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author alex
 * @date 2022/7/12 23:27
 * @description
 */
@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class CompanyRoleGroupResp {

    @ApiModelProperty("权限组ID")
    private Long groupId;

    @ApiModelProperty("权限组名称")
    private String groupName;

    @ApiModelProperty("权限组名称")
    private List<RoleGroupCompanyInfo> companyInfos;

    @Data
    @Accessors(chain = true)
    @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
    public static class RoleGroupCompanyInfo {

        @ApiModelProperty("关联企业ID")
        private Long relationId;

        @ApiModelProperty("关联企业备注名")
        private String nickName;
    }
}
